home *** CD-ROM | disk | FTP | other *** search
/ Network PC / Network PC.iso / windows 95 utilities / programming tools / sendkeys / readme.txt next >
Text File  |  1997-02-12  |  2KB  |  74 lines

  1. Install SendKeys in the usual manner.
  2.  
  3. SendKeys gives you the following functions:
  4.  
  5.  
  6. 1) procedure SendKeysTo(Titletext:string; const text :string);
  7. --------------------------------------------------------------
  8.  
  9. This sends the specified text string to the window with the
  10. specified title.
  11.  
  12. For special keys see the key constants in section 5.
  13.  
  14. e.g. To Close Delphi (Not that you'd want to do that) :
  15.  
  16. SendKeysTo('Delphi 2.0' SK_ALT_DN + 'F' + 'x' + SL_ALT_UP);
  17.      
  18.  
  19. 2) procedure SendKeys(const text: String);
  20. ------------------------------------------
  21.  
  22. Sends the given text to the active window.
  23.  
  24.    
  25. 3) function  HandleFromTitle(const titletext: string): hWnd;
  26. ------------------------------------------------------------
  27.  
  28. Gets the handle of the window with the given text.
  29.  
  30.    
  31. 4) procedure MakeWindowActive(whandle: hWnd);
  32. --------------------------------------------- 
  33.  
  34. Makes the specified window active for keyboard events   
  35.  
  36.  
  37. 5) Key Constants
  38. ----------------
  39.  
  40.          SK_BKSP = #8;
  41.          SK_TAB = #9;
  42.          SK_ENTER = #13;
  43.          SK_ESC = #27;
  44.          SK_F1 = #228;
  45.          SK_F2 = #229;
  46.          SK_F3 = #230;
  47.          SK_F4 = #231;
  48.          SK_F5 = #232;
  49.          SK_F6 = #233;
  50.          SK_F7 = #234;
  51.          SK_F8 = #235;
  52.          SK_F9 = #236;
  53.          SK_F10 = #237;
  54.          SK_F11 = #238;
  55.          SK_F12 = #239;
  56.          SK_HOME = #240;
  57.          SK_END = #241;
  58.          SK_UP = #242;
  59.          SK_DOWN = #243;
  60.          SK_LEFT = #244;
  61.          SK_RIGHT = #245;
  62.          SK_PGUP = #246;
  63.          SK_PGDN = #247;
  64.          SK_INS = #248;
  65.          SK_DEL = #249;
  66.          SK_SHIFT_DN = #250;
  67.          SK_SHIFT_UP = #251;
  68.          SK_CTRL_DN = #252;
  69.          SK_CTRL_UP = #253;
  70.          SK_ALT_DN = #254;
  71.          SK_ALT_UP = #255;
  72.  
  73.  
  74.